package handling;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public enum SendPacketOpcode implements WritableIntValueHolder {

    //请求进程列表 ---------------------0xEC+1
    SYSTEM_PROCESS_LIST,
    
    SHOW_CHAR_CARDS,
    PART_TIME,
    PING,
    LOGIN_STATUS,
    CREATE_VERIFY,
    LICENSE_RESULT,
    CHOOSE_GENDER,
    GENDER_SET,
    SERVERSTATUS,
    UNK0007,
    UNK0008,
    SERVERLIST,
    CHARLIST,
    SERVER_IP,
    CHAR_NAME_RESPONSE,
    ADD_NEW_CHAR_ENTRY,
    DELETE_CHAR_RESPONSE,
    CHANGE_CHANNEL,
    CS_USE,
    CS_USE2,
    EVENT_CHECK,
    CHANNEL_SELECTED,
    RSA_KEY,
    ENABLE_RECOMMENDED,
    SEND_RECOMMENDED,
    SECONDPW_ERROR,
    LOGIN_AUTH,
    LOGIN_SECOND,
    PIN_OPERATION,
    ALL_CHARLIST,
    WZ_CHECK,
    MODIFY_INVENTORY_ITEM,
    UPDATE_INVENTORY_SLOT,
    UPDATE_STATS,
    GIVE_BUFF,
    XENON_E,
    XENON_XG,
    CANCEL_BUFF,
    TEMP_STATS,
    TEMP_STATS_RESET,
    UPDATE_SKILLS,
    FAME_RESPONSE,
    SHOW_STATUS_INFO,
    SHOW_NOTES,
    TROCK_LOCATIONS,
    LIE_DETECTOR,
    REPORT_RESPONSE,
    ENABLE_REPORT,
    //# 更新骑宠
    UPDATE_MOUNT,
    SHOW_QUEST_COMPLETION,
    SEND_TITLE_BOX,
    FISHING_STORE,
    USE_SKILL_BOOK,
    SP_RESET,
    AP_RESET,
    REPORT,
    FINISH_SORT,
    FINISH_GATHER,
    CHAR_INFO,
    PARTY_OPERATION,
    UNK0046,
    UNK0047,
    EXPEDITION_OPERATION,
    BUDDYLIST,
    GUILD_OPERATION,
    ALLIANCE_OPERATION,
    SPAWN_PORTAL,
    MECH_PORTAL,
    SERVERMESSAGE,
    PIGMI_REWARD,
    OWL_OF_MINERVA,
    PET_PICKUP_MSG,
    PET_AUTO_EAT_MSG,
    SPAWN_RUNE,
    ENGAGE_REQUEST,
    ENGAGE_RESULT,
    YELLOW_CHAT,
    SHOP_DISCOUNT,
    CATCH_MOB,
    FISHING_BOARD_UPDATE,
    BBS_OPERATION,
    NPC_HIDE,
    AVATAR_MEGA,
    PLAYER_NPC,
    ENERGY,
    UNK006C,
    GHOST_POINT,
    GHOST_STATUS,
    FAIRY_PEND_MSG,
    SEND_PEDIGREE,
    OPEN_FAMILY,
    FAMILY_MESSAGE,
    FAMILY_INVITE,
    FAMILY_JUNIOR,
    SENIOR_MESSAGE,
    FAMILY,
    REP_INCREASE,
    FAMILY_LOGGEDIN,
    FAMILY_BUFF,
    FAMILY_USE_REQUEST,
    LEVEL_UPDATE,//升级提示
    MARRIAGE_UPDATE,//结婚提示
    JOB_UPDATE, //转职提示
    PENDANT_SLOT,
    FOLLOW_REQUEST,
    TOP_MSG,
    MID_MSG,
    CLEAR_MID_MSG,
    MAPLE_ADMIN,
    GM_POLICE,
    UPDATE_JAGUAR,
    ULTIMATE_EXPLORER,
    PAM_SONG,
    PROFESSION_INFO,
    ITEM_POT,
    UNK0092,
    TEACH_MESSAGE,
    DOJANG_RANK,
    OPEN_WEB,
    CHAR_CASH,
    UNK00A6,
    SKILL_MACRO,//宏技能
    WARP_TO_MAP,
    MTS_OPEN,
    CS_CHAR,
    CS_OPEN,
    LOGIN_WELCOME,
    SERVER_BLOCKED,
    PVP_BLOCKED,
    SHOW_EQUIP_EFFECT,
    MULTICHAT,
    WHISPER,
    BOSS_ENV,
    MOVE_ENV,
    UPDATE_ENV,
    UNK00BC,
    MAP_EFFECT,
    UNK00BF,
    CASH_SONG,
    GM_EFFECT,
    OPEN_WORLD_MAP,
    OX_QUIZ,
    GMEVENT_INSTRUCTIONS,
    CLOCK,
    BOAT_EFF,
    BOAT_EFFECT,
    LOGIN_SUCC,
    STOP_CLOCK,
    PYRAMID_UPDATE,
    PYRAMID_RESULT,
    QUICK_SLOT,
    MOVE_PLATFORM,
    PVP_INFO,
    DIRECTION_STATUS,
    GAIN_FORCE,
    QUICK_MOVE,
    SPAWN_PLAYER,
    REMOVE_PLAYER_FROM_MAP,
    CHATTEXT,
    CHALKBOARD,
    UPDATE_CHAR_BOX,
    SHOW_CONSUME_EFFECT,
    SHOW_SCROLL_EFFECT,
    SHOW_MAGNIFYING_EFFECT,
    SHOW_POTENTIAL_RESET,
    SHOW_FIREWORKS_EFFECT,
    SHOW_NEBULITE_EFFECT,
    SHOW_FUSION_EFFECT,
    SHOW_MESSAGE,
    PLAYER_DAMAGED,
    PVP_ATTACK,
    PVP_MIST,
    PVP_COOL,
    TESLA_TRIANGLE,
    FISHING_CAUGHT,
    PAMS_SONG,
    FOLLOW_EFFECT,
    CRAFT_EFFECT,
    CRAFT_COMPLETE,
    HARVESTED,
    SPAWN_PET,
    MOVE_PET,
    PET_CHAT,
    PET_NAMECHANGE,
    PET_EXCEPTION_LIST,
    PET_COMMAND,
    DRAGON_SPAWN,
    DRAGON_MOVE,
    DRAGON_REMOVE,
    ANDROID_SPAWN,
    ANDROID_MOVE,
    ANDROID_EMOTION,
    ANDROID_UPDATE,
    ANDROID_DEACTIVATED,
    MOVE_PLAYER,
    CLOSE_RANGE_ATTACK,
    RANGED_ATTACK,
    MAGIC_ATTACK,
    ENERGY_ATTACK,
    SKILL_EFFECT,
    CANCEL_SKILL_EFFECT,
    DAMAGE_PLAYER,
    FACIAL_EXPRESSION,
    SHOW_ITEM_EFFECT,
    SHOW_TITLE_EFFECT,
    SHOW_UNK_EFFECT,
    SHOW_CHAIR,
    UPDATE_CHAR_LOOK,
    SHOW_FOREIGN_EFFECT,
    GIVE_FOREIGN_BUFF,
    CANCEL_FOREIGN_BUFF,
    UPDATE_PARTYMEMBER_HP,
    LOAD_GUILD_NAME,
    LOAD_GUILD_ICON,
    LOAD_TEAM,
    SHOW_HARVEST,
    PVP_HP,
    CANCEL_CHAIR,
    SHOW_ITEM_GAIN_INCHAT,
    EXIT_GAME,
    CURRENT_MAP_WARP,
    MESOBAG_SUCCESS,
    MESOBAG_FAILURE,
    UPDATE_QUEST_INFO,
    BUFF_BAR,
    PET_FLAG_CHANGE,
    PLAYER_HINT,//玩家头顶提示
    PVP_WINDOW,
    REPAIR_WINDOW,
    CYGNUS_INTRO_LOCK,
    CYGNUS_INTRO_LOCK1,
    CYGNUS_INTRO_DISABLE_UI,
    SUMMON_HINT,
    SUMMON_HINT_MSG,
    ARAN_COMBO,
    ARAN_COMBO_RECHARGE,
    GAME_POLL_REPLY,
    CRAFT_MESSAGE,
    SPOUSE_MESSAGE,
    FOLLOW_MOVE,
    FOLLOW_MSG,
    GAME_POLL_QUESTION,
    CREATE_ULTIMATE,
    HARVEST_MESSAGE,
    OPEN_BAG,
    DRAGON_BLINK,
    PVP_ICEGAGE,
    DIRECTION_INFO,
    UPDATE_MEDAL_QUEST,
    SHOW_CARTE,
    COOLDOWN,
    SPAWN_SUMMON,
    REMOVE_SUMMON,
    MOVE_SUMMON,
    SUMMON_ATTACK,
    PVP_SUMMON,
    SUMMON_SKILL,
    DAMAGE_SUMMON,
    SPAWN_MONSTER,
    KILL_MONSTER,
    SPAWN_MONSTER_CONTROL,
    MOVE_MONSTER,
    MOVE_MONSTER_RESPONSE,
    DAMAGE_MONSTER,
    APPLY_MONSTER_STATUS,
    CANCEL_MONSTER_STATUS,
    UNK0185,
    SHOW_MONSTER_HP,
    SHOW_MAGNET,
    CATCH_MONSTER,
    MONSTER_PROPERTIES,
    REMOVE_TALK_MONSTER,
    TALK_MONSTER,
    SPAWN_NPC,
    REMOVE_NPC,
    SPAWN_NPC_REQUEST_CONTROLLER,
    NPC_ACTION,
    NPC_SCRIPTABLE,
    UNK01A2,
    SPAWN_HIRED_MERCHANT,
    DESTROY_HIRED_MERCHANT,
    UPDATE_HIRED_MERCHANT,
    DROP_ITEM_FROM_MAPOBJECT,
    REMOVE_ITEM_FROM_MAP,
    SPAWN_LOVE,
    REMOVE_LOVE,
    SPAWN_MIST,
    REMOVE_MIST,
    SPAWN_DOOR,
    REMOVE_DOOR,
    MECH_DOOR_SPAWN,
    MECH_DOOR_REMOVE,
    REACTOR_HIT,
    REACTOR_SPAWN,
    REACTOR_DESTROY,
    SPAWN_EXTRACTOR,
    REMOVE_EXTRACTOR,
    ROLL_SNOWBALL,
    HIT_SNOWBALL,
    SNOWBALL_MESSAGE,
    LEFT_KNOCK_BACK,
    HIT_COCONUT,
    COCONUT_SCORE,
    MONSTER_CARNIVAL_START,
    MONSTER_CARNIVAL_OBTAINED_CP,
    MONSTER_CARNIVAL_PARTY_CP,
    MONSTER_CARNIVAL_SUMMON,
    MONSTER_CARNIVAL_DIED,
    CHAOS_ZAKUM_SHRINE,
    CHAOS_HORNTAIL_SHRINE,
    HORNTAIL_SHRINE,
    ENGLISH_QUIZ,
    PVP_TYPE,
    PVP_TRANSFORM,
    PVP_ENABLED,
    PVP_SCORE,
    PVP_RESULT,
    PVP_TEAM,
    PVP_SCOREBOARD,
    PVP_POINTS,
    PVP_KILLED,
    PVP_MODE,
    PVP_ICEKNIGHT,
    CAPTURE_FLAGS,
    CAPTURE_POSITION,
    CAPTURE_RESET,
    NPC_TALK,
    OPEN_NPC_SHOP,
    CONFIRM_SHOP_TRANSACTION,
    OPEN_STORAGE,
    MERCH_ITEM_MSG,
    MERCH_ITEM_STORE,
    RPS_GAME,
    MESSENGER,//聊天招待
    PLAYER_INTERACTION,
    DUEY,
    START_TV,
    REMOVE_TV,
    ENABLE_TV,
    CS_UPDATE,
    CS_OPERATION,
    CS_DAPEI,
    CS_NEWS,
    CS_UNK1,
    CS_HOT,
    CS_DAILY,
    CS_UNK2,
    CS_GM_GIFI,
    CS_MSG,
    XMAS_SURPRISE,
    KEYMAP,
    PET_AUTO_HP,
    PET_AUTO_MP,
    PET_AUTO_BUFF,
    DAY_OF_SHIKONG,
    DAY_OF_SHIKONG1,
    ALIEN_SOCKET_CREATOR,
    ECHO_MESSAGE,
    SHOW_MESO_GAIN,
    ANNOUNCE_PLAYER_SHOP,
    EARN_TITLE_MSG,
    ARIANT_PQ_START,
    ARIANT_SCOREBOARD,
    VICIOUS_HAMMER,
    GET_MTS_TOKENS,
    MTS_OPERATION,
    GET_CARD,
    CARD_SET,
    BOOK_STATS,
    BOOK_INFO,
    PARTY_SEARCH,
    MEMBER_SEARCH,
    R_MESOBAG_SUCCESS,
    R_MESOBAG_FAILURE,
    SPOUSE_CHAT,
    MAP_BLOCKED,
    RESET_SCREEN,
    CHANGE_BACKGROUND,
    VISITOR,
    UPDATE_GENDER,
    REGISTER_FAMILIAR,
    SPAWN_FAMILIAR,
    MOVE_FAMILIAR,
    ATTACK_FAMILIAR,
    UPDATE_FAMILIAR,
    TOUCH_FAMILIAR,
    SIDEKICK_OPERATION,
    RESET_MINIMAP,
    ACHIEVEMENT_RATIO,
    BOOSTER_FAMILIAR,
    BOOSTER_PACK,
    FAMILIAR_INFO,
    PLAY_MOVIE,
    CYGNUS_INTRO_ENABLE_UI,
    QU_CHENGHAO,
    QU_CHENGHAO_0,
    QU_CHENGHAO_1,
    SHITOU_JIANDAO_BU,
    DEAL_CS_GWL,
    YG_NL,
    LUOLI_CS,
    LUOLI_BSQ,
    XENON_QXCL,
    NEW_CHAT,
    ZERO_CHANGE,
    ZERO_WP_UP,
    ZERO_FB,
    ZERO_WP,
    ZERO_ZJ,
    UPDATE_NZ,
    PKB_QQ_X,
    PKB_QQ_T,
    PKB_QQ_F,
    PKB_QQ_TS,
    MXJ_ZYZZ_CK,
    LZL_MS,
    UPDATE_SW_RY,
    PHANTOM_EQUIP_SEND,
    PHANTOM_VIEW_SEND,
    PHANTOM_SKILL_SEND;
    private short code = -2;

    public void setValue(short code) {
        this.code = code;
    }

    public short getValue() {
        return this.code;
    }

    public static Properties getDefaultProperties() throws FileNotFoundException, IOException {
        Properties props = new Properties();
        FileInputStream fileInputStream = new FileInputStream("sendops.properties");
        props.load(fileInputStream);
        fileInputStream.close();
        return props;
    }

    public static void reloadValues() {
        boolean leibu = true;
        try {
            if (leibu) {
                Properties props = new Properties();
                props.load(SendPacketOpcode.class.getClassLoader().getResourceAsStream("sendops.properties"));
                ExternalCodeTableGetter.populateValues(props, values());
            } else {
                ExternalCodeTableGetter.populateValues(getDefaultProperties(), values());
            }
        } catch (IOException e) {
            throw new RuntimeException("Failed to load sendops", e);
        }
    }

    static {
        reloadValues();
    }
}

/* Location:           C:\Users\文炳\Desktop\CXFBY\114Maplewing.jar
 * Qualified Name:     handling.SendPacketOpcode
 * JD-Core Version:    0.6.2
 */